#include<reg52.h>
//#include<intrins.h> 
#define uchar unsigned char
#define uint unsigned int

void delay(uchar x)
{
while(x--)
{
uchar a,b;
for(a=0;a<200;a++)

for(b=0;b<10;b++);
;

}
}
void main()
{

uchar table_du[16]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};
uchar table_wei[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
uchar i,j;
while (1)
{
P0=0xff;
for(i=0;i<8;i++)
{

for(j=0;j<16;j++)
{

P1=table_wei[i];
P0=table_du[j];

delay(300);
}
}
P0=0x00;
delay(300);
}
}
